Skip to main content
POST
/
v1
/
organizations
/
{organization_id}
/
projects
/
{project_id}
/
domains
/
{id}
/
hosting
/
associate
[Domains] Associate domain with web hosting
curl --request POST \
  --url https://api.onetsolutions.net/v1/organizations/{organization_id}/projects/{project_id}/domains/{id}/hosting/associate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "hosting_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "configure_dns": true
}
'
{
  "domain_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "hosting_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "hosting_domain": "<string>",
  "dns_configured": true
}

Documentation Index

Fetch the complete documentation index at: https://help.onetsolutions.net/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Use Authorization: Bearer <token> header. Token can be a JWT token or an API key (format: sk-onetsolutions-...).

Path Parameters

id
string
required

The unique identifier (UUID) of the domain

organization_id
string<uuid>
required
project_id
string<uuid>
required

Body

application/json
hosting_id
string<uuid>
required
configure_dns
boolean
default:true

Response

Domain successfully associated with hosting

domain_id
string<uuid>
required
hosting_id
string<uuid> | null
required
hosting_domain
string | null
required
dns_configured
boolean
required